<template>
  <div class="an-box an-page">
    <el-page-header @back="goBack" :content="title"></el-page-header>
    <div class="an-body">
      <slot></slot>
    </div>
  </div>
</template>

<script lang="ts">
import { Options, Vue } from "vue-class-component";
export default class goodsAdd extends Vue {
  title: String = "详情页";

  created() {
    this.title = this.$route.meta.title;
  }

  // 后退
  goBack() {
    this.$router.go(-1);
  }
}
</script>

<style scoped>
.an-body {
  padding-top: 15px;
  height: calc(100% - 24px);
  overflow: auto;
  position: relative;
}
</style>